package com.aplink.sg.mobilespiff.app;

import org.acra.ReportField;
import org.acra.ReportingInteractionMode;
import org.acra.annotation.ReportsCrashes;
import org.acra.sender.HttpSender;

import com.aplink.generic.GenericApplication;
import com.aplink.sg.mobilespiff.R;

@ReportsCrashes(
        formUri = "https://nglehien.cloudant.com/acra-spiff/_design/acra-storage/_update/report",
        reportType = HttpSender.Type.JSON,
        httpMethod = HttpSender.Method.POST,
        formUriBasicAuthLogin = "butedforguarrountollered",
        formUriBasicAuthPassword = "r1gQqNIgXBk7ruejLoMCjGgh",
        formKey = "",
        customReportContent = { ReportField.APP_VERSION_CODE,
                ReportField.APPLICATION_LOG, ReportField.ENVIRONMENT,
                ReportField.APP_VERSION_NAME, ReportField.ANDROID_VERSION,
                ReportField.PACKAGE_NAME, ReportField.REPORT_ID,
                ReportField.BUILD, ReportField.LOGCAT, ReportField.USER_EMAIL,
                ReportField.DEVICE_FEATURES, ReportField.THREAD_DETAILS,
                ReportField.SHARED_PREFERENCES, ReportField.USER_CRASH_DATE,
                ReportField.STACK_TRACE },
        mode = ReportingInteractionMode.DIALOG,
        resDialogCommentPrompt = R.string.crash_dialog_comments,
        resDialogText = R.string.crash_toast_text)
public class MobileSPIFFApplication extends GenericApplication {

	@Override
	protected String getBarCodeLicence() {
		return null;
	}

	@Override
	protected int initMasterConfig() {
		return R.raw.master_config;
	}

	@Override
	protected void onApplicationUpgrade(int oldVersion, int newVersion) {

	}

}
